package com.example.commonmistak.designpatterns.reflection.api;

import com.example.commonmistak.designpatterns.reflection.anno.BankApi;
import com.example.commonmistak.designpatterns.reflection.anno.BankApiField;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author xiongwei
 * @date 2022/1/19 14:15
 */
@BankApi(url = "http://baseURL/reflection/bank/pay", desc = "支付接口")
@Data
public class PayApi extends AbstractApi{
    @BankApiField(order = 1, length = 20, type = "N")
    private long id;

    @BankApiField(order = 2, length = 10, type = "M")
    private BigDecimal amount;
}
